package com.snail.test.test;

import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.util.List;

/**
 * @author liwenbo
 * @version 1.0
 * @description: TODO
 * @date 2021/9/14 5:52 下午
 */
public class GameReadFile {

    public static void main(String[] args) throws IOException {
        File file = new File("/Users/liwenbo/test.txt");
        List<String> strings = Files.readAllLines(file.toPath());
        strings.forEach(System.out::println);

    }
}
